﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Persistence.Dao;
using Domain;
using Common;
namespace web.manage
{
    public partial class Product_ProductType_Manage : adminBase
    {
        protected int level = DNTRequest.GetInt("level", 0);
        protected int parentid = DNTRequest.GetInt("parentid", 0);
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                IList<ProductType> list = new ProductTypeDao().GetModels("*", "producttypelevel=" + level.ToString() + " and parentid=" + parentid.ToString());
                if (list != null && list.Count > 0)
                {
                    repTypelist.DataSource = list;
                    repTypelist.DataBind();
                }
            }
        }
        //private void 
    }
}
